package com.ruoyi.eamp.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 邮件信息表对象 eamp_email
 * 
 * @author 吴
 * @date 2024-08-07
 */
public class EampEmail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 邮件id */
    private Long emailId;

    /** 邮件类型  1普通 2机密 3其他 */
    @Excel(name = "邮件类型  1普通 2机密 3其他")
    private Long emailType;

    /** 邮件名称（主题） */
    @Excel(name = "邮件名称", readConverterExp = "主=题")
    private String title;

    /** 收件人id */
    @Excel(name = "收件人id")
    private Long consigneeId;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String file;

    /** 正文内容 */
    @Excel(name = "正文内容")
    private String contentText;

    /** 发件人id */
    @Excel(name = "发件人id")
    private Long addresserId;

    public void setEmailId(Long emailId) 
    {
        this.emailId = emailId;
    }

    public Long getEmailId() 
    {
        return emailId;
    }
    public void setEmailType(Long emailType) 
    {
        this.emailType = emailType;
    }

    public Long getEmailType() 
    {
        return emailType;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setConsigneeId(Long consigneeId) 
    {
        this.consigneeId = consigneeId;
    }

    public Long getConsigneeId() 
    {
        return consigneeId;
    }
    public void setFile(String file) 
    {
        this.file = file;
    }

    public String getFile() 
    {
        return file;
    }
    public void setContentText(String contentText) 
    {
        this.contentText = contentText;
    }

    public String getContentText() 
    {
        return contentText;
    }
    public void setAddresserId(Long addresserId) 
    {
        this.addresserId = addresserId;
    }

    public Long getAddresserId() 
    {
        return addresserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("emailId", getEmailId())
            .append("emailType", getEmailType())
            .append("title", getTitle())
            .append("consigneeId", getConsigneeId())
            .append("file", getFile())
            .append("contentText", getContentText())
            .append("createTime", getCreateTime())
            .append("addresserId", getAddresserId())
            .toString();
    }
}
